//
//  OnedayModel.m
//  项目
//
//  Created by 张诗雨 on 14/12/30.
//  Copyright (c) 2014年 张诗雨. All rights reserved.
//

#import "OnedayModel.h"

@implementation OnedayModel

- (void)dealloc
{
    [super dealloc];
    [_coverimg release];
    [_name release];
    [_title release];
    [_content release];
    
}
- (instancetype)initWithCoverImg:(NSString *)coverimg name:(NSString *)name title:(NSString *)title view:(NSInteger)view userInfo:(NSDictionary *)userinfo playInfo:(NSDictionary *)playInfo authorInfo:(NSDictionary *)authorInfo playList:(NSArray *)playList content:(NSString *)content imglist:(NSArray *)imglist imgtotal:(NSInteger)imgtotal id:(NSString *) id
{
    self = [super init];
    if (self) {
        self.userinfo = [NSDictionary dictionary];
        self.playInfo = [NSDictionary dictionary];
        self.authorinfo = [NSDictionary dictionary];
        self.playList = [NSArray array];
        self.imglist = [NSArray array];
        self.coverimg = coverimg;
        self.name = name;
        self.title = title;
        self.view = view;
        self.userinfo = userinfo;
        self.playInfo = playInfo;
        self.authorinfo = authorInfo;
        self.playList = playList;
        self.content = content;
        self.imglist = imglist;
        self.imgtotal = imgtotal;
        self.id = id;
        
    }
    return self;
    
}
+ (instancetype)modelWithCoverImg:(NSString *)coverimg name:(NSString *)name title:(NSString *)title view:(NSInteger)view userInfo:(NSDictionary *)userinfo playInfo:(NSDictionary *)playInfo authorInfo:(NSDictionary *)authorInfo playList:(NSArray *)playList content:(NSString *)content imglist:(NSArray *)imglist imgtotal:(NSInteger)imgtotal id:(NSString *) id;
{
    OnedayModel *model = [[OnedayModel alloc] initWithCoverImg:coverimg name:name title:title view:view userInfo:userinfo playInfo:playInfo authorInfo:authorInfo playList:playList content:content imglist:imglist imgtotal:imgtotal id:id];
    return model;
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
- (id)valueForUndefinedKey:(NSString *)key
{
    return @"";
}

@end
